import 'package:flutter/material.dart';

///Debug
class DebugDemo extends StatefulWidget {
  const DebugDemo({Key? key}) : super(key: key);

  @override
  _DebugDemoState createState() => _DebugDemoState();
}

class _DebugDemoState extends State<DebugDemo> {
  int count = 10;

  // int age = 0;
  late String test;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("调试"),
        centerTitle: true,
      ),
      body: Center(child: Text(count.toString())),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () {
          setState(() {
            count++;
            if (count == 15) {
              test = "wang" * 80000;
              print(test);
            }

          });
        },
      ),
    );
  }
}
